package com.woniuxy.service.impl;

import com.woniuxy.dao.RbacManagerDao;
import com.woniuxy.entity.RbacManager;
import com.woniuxy.service.RbacManagerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Isolation;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

/**
 * @Author 罗蔚
 * @Date 2022/3/29 17:45
 * @Description TODO
 */
@Service
public class RbacManagerServiceImpl implements RbacManagerService {

    @Autowired
    public RbacManagerDao rbacManagerDao;

    @Override
    @Transactional(propagation = Propagation.REQUIRED, isolation = Isolation.READ_COMMITTED)
    public int addOne(RbacManager rbacManager) {
        int i = rbacManagerDao.addOne(rbacManager);
        //int j = 1/0;
        return i;
    }
}
